package dbz.domain.actions;

import dbz.domain.Fighter;
import dbz.domain.turn.Turn;

public class AttackAction implements Action {

	private Fighter attackingFighter;
	private Fighter targetFighter;
	private String attackName;
	
	public AttackAction(Fighter attackingFighter, Fighter targetFighter, String attackName) {
		this.attackingFighter = attackingFighter;
		this.targetFighter = targetFighter;
		this.attackName = attackName;
	}
	
	@Override
	public void execute(Turn turn) {
		attackingFighter.attack(attackName, targetFighter);
		turn.attackActionUsed();
	}

}
